<div class="redtop">
  <div class="container">
    <div class="row">
      <div class="reset-password col-lg-4 col-lg-offset-4 col-sm-6 col-sm-offset-3">

        <h1>Change your password</h1>

        <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
          <%= devise_error_messages! %>
          <%= f.hidden_field :reset_password_token %>

          <div class="form-group">
            <%= f.label :password, "New password" %>
            <%= link_to 'How to create strong passwords', 'https://ssd.eff.org/en/module/creating-strong-passwords', class: 'input-note' %>
            <%= f.password_field :password, :autofocus => true, :class => 'form-control', :required => 'required' %>
          </div>

          <div class="form-group"><%= f.label :password_confirmation, "Confirm new password" %><br />
          <%= f.password_field :password_confirmation, :class => 'form-control', :required => 'required' %></div>

          <div><%= f.submit "Change my password", :class => 'btn btn-default' %></div>
        <% end %>

        <%= render "devise/shared/links" %>
      </div>
    </div>
  </div>
</div>
